/*
 * @Author: ZhongShiGui 13751817115@163.com
 * @Date: 2023-06-05 11:10:44
 * @LastEditors: ZhongShiGui 13751817115@163.com
 * @LastEditTime: 2023-06-06 16:05:25
 * @FilePath: /jxtech-web-starter/src/api/workflow/bean/work-completed.ts
 * @Description: work-completed
 * 
 * Copyright (c) 2023 by ZhongShiGui, All Rights Reserved. 
 * 2023-06-05 11:10:44
 */


import { OrgServiceApi, WorkflowServiceApi } from "./_workflow";
import { AxiosResponse } from "axios";
import { objectToUrlParams } from "/@/utils/common";
import service from "/@/utils/request";

class WorkFlowServiceApi extends WorkflowServiceApi {
  pageQueryProcess(bean: any, params?: any): Promise<AxiosResponse<any>> {
    let url = this.baseUrl + "/pageQueryProcess";
    url += objectToUrlParams(params, true);
    return service.get(url, { params: { ...bean } });
  }
  getWorkFlowDefineKeys(bean: any, params?: any): Promise<AxiosResponse<any>> {
    let url = this.baseUrl + "/getWorkFlowDefineKeys";
    url += objectToUrlParams(params, true);
    return service.get(url, { params: { ...bean } });
  }
}

export const ExportWorkFlowServiceApi = new WorkFlowServiceApi(
  "/WorkFlowService"
);
